| abstract class $BAG{E} < $RO_BAG{E} |
|---|
| **** | A standard bag, which contains objects in no specified order, and can contain two equal objects |
| $RO_BAG{_} | $STR | $CONTAINER{_} | $ELT{_} | $ELT |
| BAG{_} | H_BAG{_} |
| delete(e:E); |
|---|
| **** | Remove one occurence of the element from the bag. Does nothing, if there is no such element in to bag. |
| delete_all(e:E); |
|---|
| **** | Remove all occurences of the element 'e'. |
| delete_all(e:E): INT; |
|---|
| **** | Returns the number of deleted items. |
| insert(e:E); |
|---|
| **** | Puts the element into the bag. |